import axiosInstance from '@/api/axiosInstance'
interface CustomConsultTypeListParams {
  name?: string
  is_all?:Boolean
  // 其他查询条件...
}

// 获取自定义诊金列表
export const getCustomConsultTypeList = async (params?: CustomConsultTypeListParams) => {
  return axiosInstance.get('/admin/custom-consult-type', { params })
}

// 获取自定义诊金详情
export const getCustomConsultTypeDetail = async (id: number) => {
  return axiosInstance.get(`/admin/custom-consult-type/${id}`)
}
// 创建自定义诊金
export const createCustomConsultType = async (data: any) => {
  return axiosInstance.post('/admin/custom-consult-type', data)
}

// 更新自定义诊金
export const updateCustomConsultType = async (id: number, data: any) => {
  return axiosInstance.put(`/admin/custom-consult-type/${id}`, data)
}

// 删除自定义诊金
export const deleteCustomConsultType = async (id: number) => {
  return axiosInstance.delete(`/admin/custom-consult-type/${id}`)
}
  
